. >> i refuse to go to afghanistan because it was against my islamic conditions. >> reporter: he wanted out. but military investigators say they found child pornography on his government computer. so, on the fourth of july, abdo went awol from ft. campbell, kentucky. investigators believe he came to ft. hood to stage an attack similar to major nidal hasan's rampage in 2009 that killed 13 and wounded 30. abc news has learned he told investigators he wanted to get even with the military. that he planned not to attack the post but a nearby restaurant popular with soldiers. he told investigators he planned to detonate two bombs there, then shoot any survivors. >> it seemed like he was up to something. >> reporter: his plan unraveled shortly after he got out of mark smith's cab at that gun shop. greg ebert sold him the ammunition and gunpowder, but got suspicious when he paid $250 in cash. >> we made a decision to call the police. and fortunately, it worked out well. >> reporter: officers tracked young soldier to this nearby hotel. in his room, all of that ammo, a pistol, the components to m